package ArvVsKompositionB;

import java.util.ArrayList;

public class InstructorRole extends Role{
	ArrayList<String> courses = new ArrayList<String>();
	
	public void addCourse(String course) {
		courses.add(course);
	}
	
	public ArrayList<String> getCourse() {
		return courses;
	}
	
	@Override
	public void printDetails() {
		for (String course : courses) {
			System.out.println("Course name: " + course);
		}
	}
}
